<script type="text/javascript" language="javascript" charset="utf-8">
$(".menu-wrap li").removeClass("active-link");
$(".menu-wrap #potential_student").addClass("active-link");
</script>
<div class="common-tit">
  <h2>意向学员详情</h2>
  <span><%= link_to "招生管理", admin_potential_students_path %> > 意向学员详情</span>
  <div class="cours-gbtn">
    <a href="<%= edit_admin_potential_student_path(@potential_student) %>">编辑</a>
  </div>
</div>
<div class="course-box">
  <h3>
    <span>基本信息</span>
  </h3>
  <div class="inte-b clearfix">
    <div class="camera">
       <% if @potential_student.avatar.present? %>
            <%= image_tag("#{@potential_student.avatar_url}", size: "150x150", alt: "头像" ,id: "potential_student_avatar_img")%>
          <% else %>
            <%= image_tag("/avatar.png", size: "150x150", alt: "头像" ,id: "potential_student_avatar_img")%>   
          <% end %>  
    </div>	
    <ul class="inte-list clearfix">
      <li>
        <span>姓名:</span>
        <em><%= @potential_student.name %></em>
      </li>
      <li>
        <span>别名:</span>
        <em><%= @potential_student.alias_name %></em>
      </li>
      <li>
        <span>性别:</span>
        <em><%= @potential_student.sex %></em>
      </li>
      <li>
        <span>学员分组:</span>
        <em><%= @potential_student.student_group_configuration.group_name if @potential_student.student_group %></em>
      </li>
      <li>
        <span>手机号:</span>
        <em><%= @potential_student.mobile %></em>
      </li>
      <li>
        <span>微信号:</span>
        <em><%= @potential_student.weixin %></em>
      </li>
      <li>
        <span>出生日期:</span>
        <em><%= @potential_student.birthday %></em>
      </li>
      <li>
        <span>信息来源:</span>
        <em><%= @potential_student.source_from %></em>
      </li>
      <li>
        <span>紧急联系人:</span>
        <em><%= @potential_student.emergency_contact %></em>
      </li>
      <li>
        <span>紧急联系人电话:</span>
        <em><%= @potential_student.emergency_mobile %></em>
      </li>
      <li class="int-a">
        <span>联系地址:</span>
        <em><%= @potential_student.address %></em>
      </li>
      <li class="int-a">
        <span>备注信息:</span>
        <em><%= @potential_student.learning_requirement %> &nbsp; <%= @potential_student.state_of_business %> &nbsp; <%= @potential_student.learning_intention %></em>
      </li>
    </ul>
  </div>
  <h3>
    <span>相关信息</span>
  </h3>
  <div class="course-b clearfix">
    <div class="relevant">
      <div>
        <span>市场专员:</span>
        <em><%= @potential_student.market_employee.name if @potential_student.market_employee_id %></em>
      </div>
      <div>
        <span>意向导师:</span>
        <em><%= @potential_student.willing_teacher %></em>
      </div>
      <div>
        <span>意向分店:</span>
        <em><%= @potential_student.intention_studio.name if @potential_student.willing_studio %></em>
      </div>
    </div>
  </div>
</div>
<div class="course-box">
  <h3>
    <span>回访记录</span>
  </h3>
  <div class="visit">
    <% @potential_student.student_remarks.each do |sr| %>
    <div class="visit-box">
      <div>
        <span>时间:</span>
        <em><%= sr.remark_at %></em>
        <span>姓名:</span>
        <em><%= sr.market_employee.name %></em>
      </div>
      <p><%= sr.remark.html_safe %></p>
    </div>
    <%end%>
  </div>
</div>
<script src="/assets/js/common.js"></script>
